package com.sy.live.service;

import java.io.Serializable;
import java.util.List;

public interface IBaseService {
	public <T> boolean addEntity(T t);
	public <T> boolean updateEntity(T t);
	public <T> boolean deleteEntity(T t);
	public <T> boolean deleteEntityByPk(Class<T> cla,Serializable pk);
	public <T> T findEntityByPK(Class<T> cla,Serializable pk);
	public <T> List<T> findEntityByAll(Class<T> cla);
//	public <T> List<T> findEntityByHql(String hql,Object...params);
}
